package util.listComparator;

import java.util.Comparator;

import entity.HomeZhuYe;

/**
 * Created by liuxiaobin on 2016/10/13
 *
 */
public class HomeZhuYeHeadImage implements Comparator<HomeZhuYe.BannerModelsBean.PicModelsBean>{
    @Override
    public int compare(HomeZhuYe.BannerModelsBean.PicModelsBean lhs, HomeZhuYe.BannerModelsBean.PicModelsBean rhs) {
        if(lhs.getOrder()<rhs.getOrder()){
            return -1;
        }else {
            return 1;
        }
    }
}
